import Vue from 'vue'
import axios from 'axios'
const requset = axios.create({
  baseURL: '/api',
  timeout: 5000
})

requset.interceptors.request.use(function (config) {
  
  return config
}, function (error) {
  return Promise.reject(error)
})

requset.interceptors.response.use(function (response) {
  return response
}, function (error) {
  return Promise.reject(error)
})
export default requset
